package com.xbongbong.pro.form.pojo;

import com.xbongbong.paas.enums.EnableEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zhouwq
 * @date 2020/9/1 15:30
 */

@Getter
@Setter
@ToString
public class HomePagePoJo {
    /**
     * id  存储图表categoryId
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否展示
     * @see com.xbongbong.paas.enums.EnableEnum
     */
    private Integer enable;

    /**
     * 1-为首页
     */
    private Integer main;

    /**
     * 1-为自定义首页
     */
    private Integer isCustom = 0;

    public HomePagePoJo() {

    }

    public HomePagePoJo(Long id, String name, Integer sort, Integer main) {
        this.enable = EnableEnum.OPEN.getCode();
        this.id = id;
        this.name = name;
        this.sort = sort;
        this.main = main;
    }
    public HomePagePoJo(Long id, String name, Integer sort, Integer main, Integer isCustom) {
        this.enable = EnableEnum.OPEN.getCode();
        this.id = id;
        this.name = name;
        this.sort = sort;
        this.main = main;
        this.isCustom = isCustom;
    }

}
